package com.itheima.polymorphsm1;

public class Wolf extends Animal{
    public String name = "狼";
    @Override
    public void eat()
    {
        System.out.println("狼吃羊");
    }

    @Override
    public void sleep()
    {
        System.out.println("狼睡觉");
    }

    @Override
    public void run()
    {
        System.out.println("狼跑");
    }
}
